<?php
    use \GatewayWorker\Lib\Db;
    class System{
        public $db;
        function __construct()
        {
            $this->db=Db::instance('game');
        }

        /**
         *获取通知消息
         */
        function getNotice(){
            $resSystem=$this->db->query("SELECT notice FROM qg_system");
            return $resSystem[0]["notice"];
        }

        /**
         * 获取游戏版本号
         * @return mixed
         */
        function getVersion(){
            $resVersion=$this->db->query("SELECT version_no as versionNo FROM qg_version");
            return $resVersion[0];
        }
    }

?>